<?php $this->beginWidget('webroot.widgets.iButtonBar');?>

<?php $this->widget('bootstrap.widgets.TbButton', array(
    'label'=>Yii::t('main','Update page'),
    'type'=>'primary',
	'icon'=>'pencil white',
    'url'=> array('update', 'id'=>$model->id),
));?>
<?php $this->widget('bootstrap.widgets.TbButton', array(
    'label'=>Yii::t('main', 'Cancel'),
    'type'=>'primary',
	'icon'=>'remove-sign white',
    'url'=> Yii::app()->createUrl('/news/pages/admin'),
));?>
<?php $this->endWidget();?>
<?php
$this->beginWidget('webroot.widgets.iPortlet', array('title'=>Yii::t('main','View').' #'.$model->id));
$this->widget('bootstrap.widgets.TbDetailView', array(
	'data' => $model,
	'attributes' => array(
		'id',
		'catid',
		'title',
		'alias',
		'introtext',
		'fulltext',
		'created',
		array(
			'name'	=>	'created_by',
			'value'	=>	BackendUsersModel::model()->findByPk($model->created_by)->username
		),
		'modified',
		array(
			'name'	=>	'modified_by',
			'value'	=>	BackendUsersModel::model()->findByPk($model->modified_by)->username
		),
		'ordering',
		'metakey',
		'metadesc',
		'status',
	),
));
$this->endWidget();
?>

